WooCommerce\PayPalCommerce\Applepay\Assets\ApplePayButton B

Total Complexity 94
Dependencies 13
Dependents 1
Total lines 1,011
Lines of code 654
Logical lines of code 321
Comment lines 250
Methods 31
Properties 12

Methods 31

Method Rating Maintainability Complexity Lines of code
render()
B
39 15 74
update_shipping_contact()
A
41 9 64
calculate_totals_cart_page()
S
48 5 41
initialize()
S
46 5 40
update_shipping_method()
S
49 5 35
cart_shipping_methods()
S
50 5 32
which_calculate_totals()
S
53 5 24
calculate_totals_single_product()
S
49 4 37
create_wc_order()
S
49 3 37
cart_calculation_results()
S
57 4 17
update_posted_data()
S
48 2 34
add_apple_onboarding_option()
S
59 3 14
bootstrap_ajax_request()
S
50 1 42
save_old_cart()
S
63 3 11
add_addresses_to_order()
S
58 2 17
reload_cart()
S
67 3 8
is_enabled()
S
69 3 7
validate()
S
63 2 11
enqueue()
S
56 1 22
customer_address()
S
60 1 16
is_nonce_valid()
S
64 2 10
clear_current_cart()
S
70 2 7
getShippingPackages()
S
60 1 13
__construct()
S
61 1 12
create_wc_countries()
S
80 1 3
applepay_data_object_http()
S
80 1 3
prepare_cart()
S
68 1 8
create_wc_order_from_cart()
S
91 1 2
applepay_button()
S
72 1 7
should_load_script()
S
82 1 3
script_data()
S
81 1 3